import { Helmet } from "react-helmet-async";

import Logo from "@/assets/images/favicon.ico";
import Router from "@/router/index";

import { MotionLazy } from "./components/animate/motion-lazy";
import Toast from "./components/toast";
import { AntdAdapter } from "./theme/adapter/antd.adapter";
import { ThemeProvider } from "./theme/theme-provider";

function App() {
  return (
    <ThemeProvider adapters={[AntdAdapter]}>
      <MotionLazy>
        <Helmet>
          <title>工业MOM平台</title>
          <link rel="icon" href={Logo} />
        </Helmet>
        <Toast />

        <Router />
      </MotionLazy>
    </ThemeProvider>
  );
}

export default App;
